﻿@model IEnumerable<tutors_clus.Models.student>

@{
    ViewBag.Title = "Kết quả tìm kiếm giáo viên";
    Layout = "~/Views/Shared/_Layout_Private.cshtml";
}
<div id="cleft">@Html.Partial("_menu_admin")</div>
<div id="cright">
@{Html.RenderAction("Search_student", "Admin");}
@if (ViewBag.count <= 0)
{
    <div>Không có kết quả tìm kiếm nào cho: <b>@ViewBag.search</b></div>
}
else
{
    <div>Có "@ViewBag.count" kết quả cho: <b>@ViewBag.search</b></div>
   <table>
    <tr>
        @*<th>
            @Html.DisplayNameFor(model => model.id_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.username_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.password_stu)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.fullname_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.birthday_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.address_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.registered_stu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.avatar_stu)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.id_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.username_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.password_stu)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.fullname_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.birthday_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.address_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.registered_stu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.avatar_stu)
        </td>
    </tr>
}

</table>
}
    </div>